function main(params) {

    const self = this;

    // 节点参数
    console.log("Params:", params);

    // 提取所有可能的列表组件
    const allPageTableLists = [
        self.$$("page_widget_list_h29unn"),
        self.$$("page_widget_list_8zdcw6"),
        self.$$("page_widget_list_8w2ddw")
    ];

    // 遍历所有列表组件
    allPageTableLists.forEach((pageTableList) => {
        if (!pageTableList) return; // 如果组件不存在，跳过

        let queryElement = pageTableList.dataEngine.state.getElement("query_field_wrapper_9g2mlr");

        api.EXEC_FORMULA(`TREE_QUERY_CHILDRENS('3a37a116-4da3-4e54-9f1d-e1b2c3ff79ad','${params.id}',['unit_id'])`)
            .then((res) => {
                if (!res || !res.result) {
                    console.warn("API 返回结果无效:", res);
                    return;
                }

                const regionIdList = res.result;

                if (queryElement && queryElement.data && queryElement.data.members) {
                    const queryProjectIdModel = queryElement.data.members[0];
                    queryProjectIdModel.props.defaultValue.value = regionIdList;
                }

                // 触发表格条件查询
                const tableCondition = pageTableList.dataEngine.state.getElement("condition_aeng5g");
                if (tableCondition) {
                    tableCondition.onQuery();
                }
            })
            .catch((err) => {
                console.error("API 调用失败:", err);
                self.$message.error(err.message); // 显示错误提示信息
            });
    });
}
